package com.blue.controller.ai;

import com.blue.common.entity.ResponseResult;
import com.blue.dto.ai.ChatRecordDTO;
import com.blue.service.ai.IUserSubscribeService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * AI用户订阅表
 *
 * @author cnj
 * @email 15696471158@163.com
 * @date 2024-09-02
 */
@RestController
@RequestMapping("ai/userSubscribe")
@Tag(name = "AI用户订阅表")
public class UserSubscribeController {

    @Autowired
    private IUserSubscribeService userSubscribeService;

    @PostMapping("/checkSubscribe")
    @Operation(summary = "订阅检查")
    public ResponseResult<?> checkSubscribe(@RequestBody ChatRecordDTO requestDTO) {
        userSubscribeService.checkSubscribe(requestDTO);
        return ResponseResult.okResult();
    }

}
